//
//  HockeyCosom.h
//  tp1-gti350
//
//  Created by Coulon-Hamelin, Alexandre on 13-09-19.
//  Copyright (c) 2013 Coulon-Hamelin, Alexandre. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Team.h"
#import "Goal.h"

@interface HockeyCosom : NSObject

@property (nonatomic) Team *team1;
@property (nonatomic) Team *team2;
@property (nonatomic) NSMutableArray *threeStars;
@property (nonatomic) int currentPeriod;
@property (nonatomic) NSMutableArray *formatedGoalList ;
@property (nonatomic) NSString *formatedGoalString ;

@property (nonatomic) NSMutableArray *goals;

-(BOOL)addPlayer:(int)teamNb AndPlayerLastName: (NSString*) lastName AndPlayerFirstName : (NSString*) firstName AndPlayerNumber: (int) number;
-(void)addGoal:(int)teamNb AndScorer: (Player*) scorer AndPass1 : (Player*) pass1 AndPass2: (Player*) pass2;
-(int)getTeamScore:(int)teamNb;
-(void)generateThreeStars;
- (Team *)getTeamByNumber :(int) number;
- (BOOL) isValidTeamNumber:(int) number;

-(void)addPlayerInThreeStars:(int) index :(Player*)player;
-(NSString *)getBestPlayersStringList;


@end
